import request from '@/utils/request'

// 查询利润月结列表
export function listMonthIncome(query) {
  return request({
    url: '/shop/monthIncome/list',
    method: 'get',
    params: query
  })
}

export function listMonthIncome2(query) {
  return request({
    url: '/shop/monthIncome/list2',
    method: 'get',
    params: query
  })
}

// 查询利润月结详细
export function getMonthIncome(id) {
  return request({
    url: '/shop/monthIncome/' + id,
    method: 'get'
  })
}

// 新增利润月结
export function addMonthIncome(data) {
  return request({
    url: '/shop/monthIncome',
    method: 'post',
    data: data
  })
}

// 修改利润月结
export function updateMonthIncome(data) {
  return request({
    url: '/shop/monthIncome',
    method: 'put',
    data: data
  })
}

// 删除利润月结
export function delMonthIncome(id) {
  return request({
    url: '/shop/monthIncome/' + id,
    method: 'delete'
  })
}
